projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30b5743
)
Forgotten commit
author
Matthias Clasen
<matthiasc@src.gnome.org>
Mon, 5 Dec 2005 18:52:04 +0000
(18:52 +0000)
committer
Matthias Clasen
<matthiasc@src.gnome.org>
Mon, 5 Dec 2005 18:52:04 +0000
(18:52 +0000)
gtk/gtktoolbutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtktoolbutton.c
b/gtk/gtktoolbutton.c
index 7d529c686d41fc670321afc84719f27a98d3479a..c7c075110b849a2317df48c0ecb2cf777c249195 100644
(file)
--- a/
gtk/gtktoolbutton.c
+++ b/
gtk/gtktoolbutton.c
@@
-546,12
+546,16
@@
clone_image_menu_size (GtkImage *image, GtkSettings *settings)
&width, &height))
{
GdkPixbuf *src_pixbuf, *dest_pixbuf;
+ GtkWidget *image;
src_pixbuf = gtk_image_get_pixbuf (image);
dest_pixbuf = gdk_pixbuf_scale_simple (src_pixbuf, width, height,
GDK_INTERP_BILINEAR);
- return gtk_image_new_from_pixbuf (dest_pixbuf);
+ image = gtk_image_new_from_pixbuf (dest_pixbuf);
+ g_object_unref (dest_pixbuf);
+
+ return image;
}
}